<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <title>SSAP | <?php echo $titulo; ?></title>
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta name="description" content="">
        <meta name="author" content="">

        <!-- Le styles -->
        <link href="<?php echo base_url() ?>template-admin/css/bootstrap.css" rel="stylesheet">
        <link href="<?php echo base_url() ?>template-admin/css/styles.css" rel="stylesheet">
        <link href="<?php echo base_url() ?>template-admin/css/bootstrap-responsive.css" rel="stylesheet">
        <link href="<?php echo base_url() ?>template-admin/css/DT_bootstrap.css" rel="stylesheet">
        <link href="<?php echo base_url() ?>template-admin/css/datepicker.css" rel="stylesheet">
        <link href="<?php echo base_url() ?>template-admin/css/bootstrap-wysihtml5.css" rel="stylesheet">

        <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
        <!--[if lt IE 9]>
          <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
        <![endif]-->

        <!-- Le javascript ================================================== -->
        <!-- Placed at the end of the document so the pages load faster -->
        <script type="text/javascript" src="<?php echo base_url() ?>template-admin/js/wysihtml5-0.3.0.min.js"></script>
        <script type="text/javascript" src="<?php echo base_url() ?>template-admin/js/jquery-1.8.1.min.js"></script>
        <script type="text/javascript" src="<?php echo base_url() ?>template-admin/js/bootstrap.min.js"></script>
        <script type="text/javascript" src="<?php echo base_url() ?>template-admin/js/jquery.dataTables.js"></script>
        <script type="text/javascript" src="<?php echo base_url() ?>template-admin/js/DT_bootstrap.js"></script>
        <script type="text/javascript" src="<?php echo base_url() ?>template-admin/js/bootstrap-timepicker.js"></script>
        <script type="text/javascript" src="<?php echo base_url() ?>template-admin/js/bootstrap-datepicker.es.js"></script>
        <script type="text/javascript" src="<?php echo base_url() ?>template-admin/js/jquery.printPage.js"></script>
        <script type="text/javascript" src="<?php echo base_url() ?>template-admin/js/bootstrap-wysihtml5.js"></script>
        <script type="text/javascript" src="<?php echo base_url() ?>template-admin/js/bootstrap-wysihtml5.es-AR.js"></script>

        <script type="text/javascript">
            $(".print").printPage();
            
            /* Table initialisation */
            $(document).ready(function() {
                oTable = $('.table').dataTable( {
                    "sDom": "<'row-fluid'<'span6'l><'span6'f>r>t<'row-fluid'<'span6'i><'span6'p>>",
                    "sPaginationType": "bootstrap",
                    "oLanguage": {
                        "sLengthMenu": "_MENU_ records per page"
                    },
                    "oLanguage": {
                        "sProcessing":   "Procesando...",
                        "sLengthMenu":   "Mostrar _MENU_ registros",
                        "sZeroRecords":  "No se encontraron resultados",
                        "sInfo":         "Mostrando desde _START_ hasta _END_ de _TOTAL_ registros",
                        "sInfoEmpty":    "Mostrando desde 0 hasta 0 de 0 registros",
                        "sInfoFiltered": "(filtrado de _MAX_ registros en total)",
                        "sInfoPostFix":  "",
                        "sSearch":       "<i class=\"icon-search\"></i> Buscar:",
                        "sUrl":          "",
                        "oPaginate": {
                            "sFirst":    "Primero",
                            "sPrevious": "Anterior",
                            "sNext":     "Siguiente",
                            "sLast":     "Último"
                        }
                    }
                } );
                $(".modal").css('display','none');
                
                $('.date-time').timepicker({
                    minuteStep: 1,
                    template: 'modal',
                    showSeconds: true,
                    showMeridian: false
                });
 
                $('.date-picker').datepicker()
                .on('changeDate', function(ev){
                    $('.date-picker').datepicker('hide');
                });
                $(".icon-calendar").click(function(){
                    $('.date-picker').datepicker('hide');
                    $(this).parent().parent().children('input').focus();
                });
                
                $('textarea').wysihtml5({
                    "image": false,
                    "size": 'mini',
                    "locale": "es-AR"
                });
                //oTable.fnSort([[ 1, "desc" ]]);
            } );
            
        </script>

        <!-- Le fav and touch icons -->
        <link rel="shortcut icon" href="">
    </head>

    <body>